package com.xmall.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmall.sys.entity.Permission;
import com.xmall.sys.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户ID查询权限信息
     */
    List<Permission> userPermissionList(@Param("userId") Long userId);
}
